/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech.edu.ixj.interfaces;

import aptech.edu.ixj.dto.AnswerDto;
import aptech.edu.ixj.dto.QuestionDto;
import aptech.edu.ixj.entity.Answer;
import aptech.edu.ixj.entity.Question;
import java.util.List;
import org.w3c.dom.Node;

/**
 *
 * @author ChauNTM
 */
public interface IQALogic {

    public List<QuestionDto> getListQuestion(String surveyId);

    public List<AnswerDto> getlisAnswers(String quesId);

    public boolean save();

    public boolean removeAnser(String answerId);

    public boolean removeQuestion(String quesId);

    public void reemove(Node nodeParen, Node nodeRemove);

    public boolean createQuestion(QuestionDto question);

    public boolean createAnswer(AnswerDto answer);
}
